package com.feige.base.dto;





import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.feige.base.po.IPersistence;

import java.io.Serializable;

/**
 * @author feige
 */
public interface BaseDto<T extends IPersistence> extends Serializable {


    /**
     * 转为po对象
     * @return
     */
    default T toPo(){
        throw new UnsupportedOperationException();
    }

    /**
     * 构建查询条件
     * @return
     */
    default LambdaQueryWrapper<T> baseQueryWrapper(){
        throw new UnsupportedOperationException();
    }

}
